<include file="Common:header"/>
    <div class="container content">
      <div class="panel panel-default">
      <!-- Default panel contents -->
      <div class="panel-heading">作品列表 <a href="{:U('Works/edit')}">添加作品</a></div>

      <!-- Table -->
      <table class="table">
        <thead>
          <tr>
            <th>id</th>
            <th>作品标题</th>
            <th>完成时间</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          <foreach name="works" item="v">
            <tr>
              <th scope="row">{$v.id}</th>
              <td>{$v.title}</td>
              <td>{$v.time}</td>
              <td>
                <a class="btn btn-success btn-xs update" cid="{$v.id}" data-toggle="modal" data-target=".bs-update-modal-lg">修改</a>
                <a href="{:U('Works/delWork',array('id'=>$v['id']))}" class="btn btn-danger btn-xs">删除</a>
              </td>
            </tr>
          </foreach>
        </tbody>
      </table>
    </div>
    </div>
<include file="Common:js"/>
</body>
</html>
